﻿<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="vtc" uri="/vtc-core-tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<html>
<head>
	<title>Data Import</title>
	
	<script type="text/javascript">
		function clickBtn(action){
			if(action!=null && $.trim(action)!=""){
				$("#dataimportForm").attr('action',action);
			}
			
			$("#dataimportForm").submit();
		}
	</script>
    
</head>
<body>

<div class="content">
  <div class="pageTitle">Data Import</div>
  
  <div class="form2">
  <s:actionerror/>
  <s:fielderror/>
  <s:actionmessage/> 
		  
  <s:form id="dataimportForm" name="dataimportForm" namespace="/dataimport" 
  		  action="dataimport.action" validate="true" method="POST" enctype="multipart/form-data">
  	<s:hidden name="dataimport.id"></s:hidden>
  	
    <table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td class="sep" ><img src="../images/spacer.gif" style="width:180px;" /></td>
        <td class="sep" ><img src="../images/spacer.gif" style="width:180px;" /></td>
        <td class="sep sep2" ><img src="../images/spacer.gif" /></td>
      </tr>
      <tr>
          <td colspan="2">
        	  <label class="fLabel" >Import Job Name </label>
	          <div class="fField">
	          		<s:textfield name="dataimport.jobName" cssStyle="width:500px" disabled="true"/>
	          </div>
          </td>
      </tr>
      <tr>
         <td>
	          <label class="fLabel" >Interface Type</label>
	          <div class="fField">
	          		<s:textfield name="getInterfaceTypeName(dataimport.interfaceType)" cssStyle="" disabled="true"/>
	          </div>
	    </td>
        <td width="255px">
			  <label class="fLabel" >Run At</label>
	          <div class="fField">
	          		<s:textfield name="runAtDate" cssStyle="" cssClass="inputCalendar" readonly="true" disabled="true"/>
			  		<b style="font-weight: normal; " class="weekText">&nbsp;</b>
					<s:select cssClass="inputSelect" cssStyle="vertical-align:middle" name="runAtHour"
							list="dataimportService.hourList" listKey="code" listValue="desc" 
							headerKey="" headerValue="%{runAtHour}" disabled="true">
					</s:select>
              		:
              		<s:select cssClass="inputSelect" cssStyle="vertical-align:middle" name="runAtMin"
							list="dataimportService.minList" listKey="code" listValue="desc" 
							headerKey="" headerValue="%{runAtMin}" disabled="true">
					</s:select>			
	          </div>
        </td>
      </tr>
      <tr>
      	<td  colspan="2">
	      	<div class="fField">Interface File :
				<s:textfield name="convertFilename(dataimport.interfaceFilePath)" cssStyle="width:400px" disabled="true" readonly="true"/>
	   	  	</div>
	   	 </td>
   	  </tr>
      <tr>
        <td colspan="2">
        	<label class="fLabel" >Remark </label>
	          <div class="fField">
		      		<s:textarea name="dataimport.remark" cssStyle="width:500px; height:100px" cssClass="inputTextarea" disabled="true"/>
	          </div>
	    </td>
      </tr>
		  <tr>
	         <td><label class="fLabel">Completion Time </label>
	         	 <input type="text" disabled="disabled" style="width:150px" value="<s:date name="dataimport.completionTime" format="dd/MM/yyyy HH:mm" />" class="required">
	             <!-- 
	             <input type="text" disabled="disabled" style="width:150px" value="<s:property value='%{dataimport.completionTime}'/>" class="required">
	           	-->
	           </div>
	         </td>
	         <td><label class="fLabel">Status </label>
	             <input type="text" disabled="disabled" style="width:150px" value="<s:property value='%{dataimport.status}'/>" class="required">
	           </div>
	         </td>
	      </tr>     
    </table>
     	<div class="btnSet btnSetTypeA">
	      <div class="left" >
	        <div class="button" >
	          <div class="left" >
	            <div class="right" >
	              <input class="inputButton" type="button" id="cancelBtn" name="cancel" value="Back" onclick="window.location='dataimport.action'"/>
	            </div>
	          </div>
	        </div>
	      </div>
	    </div>
   </s:form>
  </div>
  <!-- InstanceEndEditable --> 
  </div>


</body>
</html>